<div class="container">
    @foreach(['success','warning','danger','info']  as $info)
        @if(session()->get($info))
            <div class="flash-message">
                <p class="alert alert-{{$info}}">
                    {{session()->get($info)}}
                </p>
            </div>
        @endif
    @endforeach
</div>
